package com.xiaoxing.zhinenghuacangku_rizhao.mvp.ui.adapter;

import android.content.Context;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.xiaoxing.zhinenghuacangku_rizhao.R;
import com.xiaoxing.zhinenghuacangku_rizhao.mvp.ui.entity.YiKu;

import java.util.List;


public class YiKuAdapter extends BaseQuickAdapter<YiKu, BaseViewHolder> {

    private Context mContext;

    public YiKuAdapter(Context context, @Nullable List<YiKu> data) {
        super(R.layout.zhi_neng_cang_ku_ri_zhao_item_yi_ku_lin_yi, data);
        this.mContext = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, YiKu item) {
//        GlideUtil.loadImage(mContext, item.getImg(), helper.getView(R.id.img_product));
        helper.setText(R.id.tv_cang_wei, item.getSpname());
        helper.setText(R.id.tv_xiang_mu_ming_cheng, item.getProjectname());
        helper.setText(R.id.tv_gong_ying_shang, item.getSupplier());
        helper.setText(R.id.tv_ding_dan_hao, item.getPurchaseid());
        helper.setText(R.id.tv_wu_liao_ming_cheng, item.getMaterial());
        helper.setText(R.id.tv_shuliang, item.getNums());
        helper.setText(R.id.tv_cang_ku, item.getSname());
    }

}
